/*
 * @Author: liangzhuo liangzhuo@chzu.com
 * @Date: 2022-10-21 19:38:39
 * @LastEditors: liangzhuo liangzhuo@chzu.com
 * @LastEditTime: 2022-10-23 16:34:25
 * @FilePath: \hongxinUi\src\api\exam\examInput.js
 * @Description: 题库中所有的填空题
 */
import request from '@/utils/request'

// 分页查询所有填空题（可模糊查询）
export function getExamInput(data) {
  return request({
      url: '/system/input/list',
      method: 'get',
      params: data
  })
}

// 添加填空题
export function addExamInput(data) {
  return request({
      url: '/system/input',
      method: 'post',
      data: data
  })
}

// 修改填空题
export function updateExamInput(data) {
  return request({
      url: '/system/input',
      method: 'put',
      data: data
  })
}

// 根据id批量删除填空题
export function delExamInput(ids) {
  return request({
      url: `/system/input/${ids}`,
      method: 'delete'
  })
}

// 导入填空题
export function importExamInput(data) {
  return request({
      url: '/system/input/importData',
      method: 'post',
      data: data
  })
}

// 导出填空题
export function exportInput(data) {
  return request({
      url: '/system/input/export',
      method: 'post',
      data: data
  })
}